@{block #content}

<div><a href="{link :Kernel:Logs:Overview:default}" class="button ui-state-default ui-corner-all">
<span class="ui-icon ui-icon-carat-1-w floatLeft">&nbsp;</span> &nbsp;{!_"Back to Logs"}</a></div>

<h1>{$title}</h1>

{if count($logs) > 0}

{if isset($next)}
NEXT {$next}
{/if}

<table class="smallerTable">
	<tr>
    	<th>{!_"Time"}</th>
    	<th>{!_"Level"}</th>
    	<th>{!_"Message"}</th>
    	<th>{!_"File"}</th>
    </tr>
    {foreach $logs as $log}
    <tr>
        <td style="text-align:left;">{$log["time"]}</td>
        <td style="text-align:left;">{$log["level"]}</td>
        <td style="text-align:left;">{$log["message"]}</td>
        <td style="text-align:left;" title="{$log['file']} | {$log['class']} -> {$log['method']} | line: {$log['line']}">...{$log["file"]|substr:-20}</td>
    </tr>
    {/foreach}
</table>

{else}
<p>{!_'No logs available.'}</p>
{/if}

{if isset($next)}
NEXT {$next}
{/if}

{/block}